package org.lanlab.storode.service.analyzer;

import org.lanlab.storode.dal.entity.CodeSegment;

import java.util.*;

/**
 * @author jingchun
 * @since 2020/3/15
 */
public class AnalyzerResult {

    private Map<CodeSegment, List<String>> codeSegmentRelations = new HashMap<>();

    public void putRelation(CodeSegment codeSegment, String requirementNo) {
        if (Objects.isNull(codeSegmentRelations.get(codeSegment))) {
            codeSegmentRelations.put(codeSegment, new ArrayList<>());
        }
        codeSegmentRelations.get(codeSegment).add(requirementNo);
    }

}
